<%@ page import="net.amsoft.iservice.ilink.util.ILinkConstants" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">

<SCRIPT LANGUAGE="JavaScript">
<!--

function displayMsg(msg, status, opCode)
{
	if(msg != "")		
	{
		alert(msg);
		//Reload parent if session has expired
		if(status == '-1' || status == -1)
		{
			parent.location.reload() ;		
		}
		if(opCode != '3' || opCode != 3)
		{
			parent.frames['ifrLinks'].location.reload(true);
			parent.resetPage();
		}
	}

}
//-->
</SCRIPT>
</head>
<%
	String msg = (String)request.getAttribute(ILinkConstants.REQ_ATTRIBUTE_MESSAGE);
	int status = -1;
	int opCode = -1;
	try {status = Integer.parseInt((String)request.getAttribute(ILinkConstants.REQ_ATTRIBUTE_STATUS));
		opCode = Integer.parseInt((String)request.getAttribute(ILinkConstants.REQ_ATTRIBUTE_OPTYPE));
	}
	catch(Exception e){}
	if(msg == null)
	{
		msg="";
	}
%>
<BODY onload="displayMsg('<%=msg%>', '<%=status%>', '<%=opCode%>');">
<FORM name="Forwards" method="post" action="/ilink/SaveILink" id="Forwards"> 
	<INPUT type="text" name="iname">
	<INPUT type="text" name="tag">
	<INPUT type="text" name="oldIname">
	<INPUT type="text" name="oldTag">
	<INPUT type="text" name="webResource">
	<INPUT type="text" name="isPublic">
	<INPUT type="text" name="opType">
</FORM>
</body>
</html>